package com.liuugoqing.structural.decorator;

/**
 * 抽象装饰（最巧妙的一个类，继承或实现 以及 聚合 抽象构建）
 * @Author : liugq
 * @Date : 2022/7/4 16:21
 * @See : 参考类
 * @Since： JDK1.8
 * @Version : 1.0
 */
public abstract class Garnish extends FastFood{
    private FastFood fastFood;

    public Garnish( FastFood fastFood,float price, String desc) {
        super(price, desc);
        this.fastFood = fastFood;
    }

    public FastFood getFastFood() {
        return fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }
}
